// pages/business_image/business_image.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    images: [],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.getOpenerEventChannel().on('dataTransfer', data=>{
      this.setData({images:data.images});
    });
  },

  bindViewImages(event) {
    let index = event.currentTarget.dataset.index;
    wx.previewImage({
      urls: this.data.images,
      current: this.data.images[index]
    })
  },

});
